package com.love.netty.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.netty.model.FeedBack;
import com.love.netty.mapper.FeedBackMapper;
import com.love.netty.service.IFeedBackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 反馈 服务实现类
 * </p>
 *
 * @author wuj
 * @since 2021-06-09
 */
@Service
public class FeedBackServiceImpl extends ServiceImpl<FeedBackMapper, FeedBack> implements IFeedBackService {

    @Autowired
    private FeedBackMapper feedBackMapper;

    /**
     * 分页查询
     * @return
     */
    @Override
    public Page<FeedBack> selectPageVo() {
        Page<FeedBack> page = new Page<>(1, 10);
        Page<FeedBack> feedBackPage = feedBackMapper.selectPage(page, null);
        return feedBackPage;
    }
}
